package org.example.StudentManagementSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("enrollments")
@Schema(description = "学生选课信息")
public class Enrollment {
    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "选课记录ID", required = true)
    private Integer id;

    @Schema(description = "学生ID", required = true)
    private Integer studentId;

    @Schema(description = "课程ID", required = true)
    private Integer courseId;

    @Schema(description = "选课时间", required = true)
    private Date enrollmentTime;
}
